﻿using System;
using System.Globalization;
using System.IO;
using System.Runtime.CompilerServices;

namespace Lottery.Client.SL
{
    public class SimpleSchemeInfo
    {
        public int ID;
        [CompilerGenerated]
        private string _cpgString1;
        [CompilerGenerated]
        private double _cpgDouble1;
        [CompilerGenerated]
        private double _cpgDouble2;
        [CompilerGenerated]
        private DateTime _cpgDateTime1;
        public string IDStr
        {
            get
            {
                return this.ID.ToString();
            }
        }
        public string Title
        {
            get;
            set;
        }
        public string Multiple
        {
            get
            {
                return this.CpgDouble1().ToString(CultureInfo.InvariantCulture);
            }
        }
        public string SchemeMoney
        {
            get
            {
                return this.CpgDouble2().ToString(CultureInfo.InvariantCulture);
            }
        }
        public DateTime DealTime
        {
            get;
            set;
        }
        [CompilerGenerated]
        private double CpgDouble1()
        {
            return this._cpgDouble1;
        }
        [CompilerGenerated]
        private void CpgDouble1(double value)
        {
            this._cpgDouble1 = value;
        }
        [CompilerGenerated]
        private double CpgDouble2()
        {
            return this._cpgDouble2;
        }
        [CompilerGenerated]
        private void CpgDouble2(double value)
        {
            this._cpgDouble2 = value;
        }
        public static SimpleSchemeInfo GetBuyedSchemeInfos(BinaryReader br)
        {
            SimpleSchemeInfo result;
            try
            {
                SimpleSchemeInfo simpleSchemeInfo = new SimpleSchemeInfo();
                simpleSchemeInfo.ID = br.ReadInt32();
                simpleSchemeInfo.Title = br.ReadString();
                simpleSchemeInfo.CpgDouble1(br.ReadDouble());
                simpleSchemeInfo.CpgDouble2(br.ReadDouble());
                simpleSchemeInfo.DealTime = Convert.ToDateTime(br.ReadString());
                result = simpleSchemeInfo;
            }
            catch
            {
                result = null;
            }
            return result;
        }
    }
}
